import 'dart:math';

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/screenutil.dart';
import 'package:shop/http/HttpUtil.dart';
import 'package:shared_preferences/shared_preferences.dart';

class DailyReport extends StatefulWidget {
  DailyReport({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _DailyReport createState() => _DailyReport();
}

class _DailyReport extends State<DailyReport> {

  void _onload() async {
    SharedPreferences prefs = await SharedPreferences.getInstance();
    var mid= prefs.getString("merchantID");//将商家ID存内存里
    var x = await HttpUtil().get("/waimai/mOder/getXiaoliangByMerchant?mid=${mid}");
  }

  @override
  Widget build(BuildContext context) {
    ScreenUtil.init(context , width: 464 , height: 820) ;
    return Scaffold(
      appBar: AppBar(
        title: Text("经营数据"),
      ),
      body:Container(

      ),
      backgroundColor: Color(0xf0f0f0)

    );
  }

}
